package com.lotter.common.enumobject;

//资金流水
public enum WinpayflowEnum {

	ONLINE_RECHARGE(1, "充值"), ONLINE_PRESENTCHECK(2, "取现"),
	PLATFORM_TRANSFER(3, "中奖所得"), ROOM_ROYALTY(4, "房间提成"),
	PURCHASE_ORDER(5, "购买订单"),PLATFORM_TICKET(6, "平台退票");
	
	private int code;

	
	private String desc;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}


	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	private WinpayflowEnum(int code,  String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getDesc(int i){
		for (WinpayflowEnum type : values()) {
			if(type.getCode()==i){
				return type.getDesc();
			}
		}
		return null;
	}
}
